<form method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/add','','')}/callbackType/closeCurrent/navTabId/allotAdd" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<div class="pageContent">
	<div class="pageFormContent" layoutH="55" style="height: 119px; overflow: auto;">	
 		<table class="searchContent" width="100%" style="align:left;">
			<tr>
				<td>调拨日期：</td>
				<td>
					<input type="text" maxdate="2020-03-13" mindate="2016-03-02" datefmt="yyyy-MM-dd" class="date textInput readonly valid" name="date" readonly="readonly" value="{:date('Y-m-d',time())}"/>
					<!--<a href="javascript:;" class="inputDateButton">选择</a>
					<span class="info"></span>-->
				</td>
				<td>调入库房：</td>
				<td width="20%">
					<input id="depot.id" name="depot_id" value="" type="hidden"/>
					<input class="required" id="depot.name" name="depot.name" type="text" postField="keyword" suggestFields="name" suggestUrl="{:U(MODULE_NAME.'/Depot/lookupSuggestAll')}" lookupGroup="depot" readonly="readonly" size="30"/>
					<a class="btnLook" href="{:U(MODULE_NAME.'/Depot/lookupAll')}" lookupGroup="depot">查找带回</a>					
				</td>
				<td>领料人:</td>
				<td><input class="required" name="receive" type="text"/></td>
				<td>发料人:</td>
				<td><input type="text" name="sender" size="6" value="{:SESSION('realname')}"/>
				</td>
				<td>操作:</td>
				<td><input type="text" name="username" size="5" value="{:SESSION('realname')}" readonly="readonly"/></td>
			</tr>
			</table>
			<div class="divider"></div>

			<div class="panel" defH="90%">			
				<div>
					<table class="list nowrap itemDetail" addButton="添加行" width="100%">
						<thead>
							<tr>
								<th type="lookup" id="goods.name[#index#]" name="goods.name[#index#]" lookupGroup="goods" lookupUrl="{:U(MODULE_NAME.'/Code/goodsLookup')}" suggestFields="name,supplier_name,depot_name,price" size="60" fieldClass="required">物料名称</th>
								<th type="lookup1" name="goods.supplier_name[#index#]">供应商</th>
								<th type="lookup1" name="goods.depot_name[#index#]">库房</th>
								<th type="lookup1" name="goods.price[#index#]">单价</th>
								<th type="text" name="goods.number[#index#]" size="12" fieldClass="digits required" defaultVal="1" min="1">数量</th>
								<th type="text" name="goods.remark[#index#]" size="12" >备注</th>
								<th type="del" width="60">操作</th>
							</tr>
						</thead>
						<tbody>

						</tbody>
					</table>
				</div>
			
			</div>
	</div>			
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
			</ul>
		</div>
</div>
</form>
